package kr.hkit.powerjava.chapter5.work;

import java.util.Scanner;

public class exercise8b {
	public static void main(String[] args) {
		int age;
		int height;
		int parent;
		
		Scanner input = new Scanner(System.in);
		
		System.out.println("나이를 입력하시오.");
		age = input.nextInt();
		System.out.println("키를 입력하시오.(cm)");
		height = input.nextInt();
		System.out.println("보호자 동반 유,무를 입역하시오.(동반시 1 아니면 0을 입력)");
		parent = input.nextInt();
		
		System.out.println( ((age <= 6) && (height >= 150)) || ((age <= 6) && 
				(height <= 150) && (parent == 1)) );
		
		
	}

}
